package com.by.mapper;

import com.by.bean.EnquiryDetail;
import com.by.common.crud.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface EnquiryDetailMapper extends BaseMapper<EnquiryDetail> {
    /**
     * 批量保存
     * @param eid 询价单id
     * @param enquiryDetailList 询价明细
     * @return
     */
    int  batchSave(@Param("eid") int eid,@Param("enquiryDetailList") List<EnquiryDetail> enquiryDetailList);

    /**
     * 根据询价编号查询价详细
     * @param eid 询价编号
     * @return
     */
    List<Map> queryById(int eid);
}
